
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="RobotIDE" /> 
<style type="text/css">
html {
  font-family: Arial,Helvetica,sans-serif;
  background-color: white;
  color: black;
}
p {
  max-width: 60em;
}
table {
  border-collapse: collapse;
  empty-cells: show;
  margin: 1em 0em;
  border: 0.1em solid black;
}
th, td {
  border-style: solid;
  border-width: 0.05em 0.1em;
  border-color: black;
  padding: 0.1em 0.2em;
  height: 1.5em;
}
th {
  background-color: rgb(192, 192, 192);
  color: black;
  border-width: 0.1em;
  font-weight: bold;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 0.1em;
}
/* Widths of named columns */
col.name {
  width: 10em;
}
.action, .value, .arg {
  width: 15em;
}
/* Properties for the name column 
- td:first-child should work in CSS 2.1 avare browsers (tested in Firefox)
- col.name is against specs but works in IE
*/
td:first-child, col.name {
  background-color: rgb(240, 240, 240);
  text-transform: capitalize;
  letter-spacing: 0.1em;
}
/* required for IE */
th {
  font-style: normal;
}
</style>
<title>Settings Variable Conditionally</title>
</head>
<body>
<h1>Settings Variable Conditionally</h1>

<table border="1">
<colgroup span="99">
<col class="name">
<col class="value" span="4"></colgroup>
<tr>
<th>Setting</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
</tr>
<tr>
<td>Documentation</td>
<td>Sometimes there is need to set variable based on some condition. Here is simple examples how to do that.</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

<table border="1">
<colgroup span="99">
<col class="name">
<col class="value" span="4"></colgroup>
<tr>
<th>Variable</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
<th>Value</th>
</tr>
<tr>
<td>${NUMBER}</td>
<td>5</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

<table border="1">
<colgroup span="99">
<col class="name">
<col class="action">
<col class="arg" span="3"></colgroup>
<tr>
<th>Test Case</th>
<th>Action</th>
<th>Argument</th>
<th>Argument</th>
<th>Argument</th>
</tr>
<tr>
<td><a name="test_Setting Variable Using &quot;If-Else&quot; Construct">Setting Variable Using "If-Else" Construct</a></td>
<td>${variable} =</td>
<td>Set Variable If</td>
<td>True</td>
<td>Hi you!</td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>Hello world!</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>Should Be Equal</td>
<td>${variable}</td>
<td>Hi you!</td>
<td></td>
</tr>
<tr>
<td></td>
<td>${variable} =</td>
<td>Set Variable If</td>
<td>False</td>
<td>Hi you!</td>
</tr>
<tr>
<td></td>
<td>...</td>
<td>Hello world!</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>Should Be Equal</td>
<td>${variable}</td>
<td>Hello world!</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><a name="test_Settings Variable Using &quot;If-If Else-Else&quot; Construct">Settings Variable Using "If-If Else-Else" Construct</a></td>
<td>[Documentation]</td>
<td>By default the variable will get value 'some other number' as the \${NUMBER} is 5. You can change the \${NUMBER} with the command line option --variable i.e. "--variable NUMBER:2".</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>${variable} =</td>
<td>Set Variable If</td>
<td>${NUMBER} == 1</td>
<td>one</td>
</tr>
<tr>
<td></td>
<td></td>
<td>...</td>
<td>${NUMBER} == 2</td>
<td>two</td>
</tr>
<tr>
<td></td>
<td></td>
<td>...</td>
<td>some other number</td>
<td></td>
</tr>
<tr>
<td></td>
<td>Log</td>
<td>${variable}</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

<table border="1">
<colgroup span="99">
<col class="name">
<col class="action">
<col class="arg" span="3"></colgroup>
<tr>
<th>Keyword</th>
<th>Action</th>
<th>Argument</th>
<th>Argument</th>
<th>Argument</th>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

</body>
</html>
